﻿

public class SingleBase<T> where T : new()
{
    private static T Intance;

    public static T GetIntance()
    {
        if (null == Intance)
            Intance = new T();
        return Intance;
    }
}

